import request from '@/utils/request';

/* 会员等级配置设置 */
export async function member_level_get_setting(params) {
  const res = await request.post(
    '/member/member_level_setting/get_setting',
    params
  );
  if (res.data.code === 1) {
    return res.data.data;
  }
  return Promise.reject(res.data.msg);
}
/* 会员等级配置设置 */
export async function member_level_setting(params) {
  const res = await request.post(
    '/member/member_level_setting/setting',
    params
  );
  if (res.data.code === 1) {
    return res.data;
  }
  return Promise.reject(res.data.msg);
}
/* 会员等级配置设置日志 */
export async function setting_log(params) {
  const res = await request.post(
    '/member/member_level_setting/setting_log',
    params
  );
  if (res.data.code === 1) {
    return res.data;
  }
  return Promise.reject(res.data.msg);
}
